package com.nph.fireworks.client.events;

import java.util.Date;

import com.google.gwt.event.shared.GwtEvent;

public class StartEvent extends GwtEvent<StartEventHandler> {
	public static Type<StartEventHandler> TYPE = new Type<StartEventHandler>();
	private Date endDate;
	
	public StartEvent(Date endDate) {
		super();
		this.endDate = endDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	@Override
	public Type<StartEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(StartEventHandler handler) {
		handler.onStart(this);
	}
}
